<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

<%@ page import="com.conversationboard.config.*" %>
<%@ page import="com.conversationboard.model.StyleSheets"%>

<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>

<%@ page import="com.conversationboard.view.MainMenu"%>
<%@ page import="com.conversationboard.controller.confirm.Confirm"%>

<%
	String key = Confirm.getKey(request.getUserPrincipal().getName());
	request.setAttribute("key", key);
	String root = Configuration.getInstance().getRoot();
	request.setAttribute("root", root);
%>


<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Ban Requests</title>
		<link rel="stylesheet"title="Conversation Board" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
	</head>

	<body>
	
		<%= MainMenu.display(request.getUserPrincipal()) %>
	
		<div class="headingblock">
			<h1>Ban Requests</h1>
		</div>

		<div class="mainblock">

			<p>Displaying ban requests where the requested bans number greater than five.</p>

			<div class="formsection">
	
				<table class="table">
					
					<tr class="header">
						<td class="cell">Display Name</td>
						<td class="cell">Number of Ban Requests</td>
					</tr>			
				
					<c:forEach var="user" items="${banRequests}">
						<tr class="row">
							<td class="cell">${user.displayName} <a href="${root}/Pages/Admin/Reports/ban-requests-report.jsp?loginId=${user.banLoginId}">Details</a> / <a href="AdminUserInfoControllerServlet?userid=${user.banLoginId}">User Info</a></td>
							<td class="cell">${user.total}</td>
						</tr>
					</c:forEach>
				
				</table>
			</div>
			
		</div>
			
		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
		
	</body>
	
</html>
